import axiosInstance from "../axiosInstance";
import axios from "axios";
const IndexInterface = {
    // 查询日志
    SelectDelog(day) {
        return axiosInstance.post('remoteapi' + '/selectdelog', { day });
    },
    // 导出excel  
    exportexcel(filesIdList) {
        return axiosInstance({
            method: 'post',
            url: 'remoteapi' + '/downexcel',
            data: {
                'filesIdList': filesIdList
            },
            responseType: 'blob'
        })
    },
    // 删除文件(真实删除，数据库文件、图片文件、A53文件、全部删除)
    noseefile(filesIdList) {
        return axiosInstance({
            method: 'post',
            url: 'remoteapi' + '/noseefile',
            data: {
                'filesIdList': filesIdList
            },
        })
    },
    // 重新加工已经加工完成的文件
    rework(filesIdList) {
        console.log(filesIdList)
        return axiosInstance({
            method: 'post',
            url: 'remoteapi' + "/rework",
            data: {
                filesIdList
            }
        })
    },

    // 逻辑删除A53机器
    NoSeeA53(design_id) {
        var temp = '/noseea53?design_id=' + design_id;
        return axiosInstance.post('remoteapi' + temp);
    },
    // 逻辑删除设计机器
    noseedesign(design_id) {
        var temp = '/noseedesign?design_id=' + design_id;
        return axiosInstance.post('remoteapi' + temp);
    }
}

export default IndexInterface;